package com.linwen.tips.commonmethod;

import java.util.Arrays;
import java.util.List;


public class BeforeOptimize {

    public static void main(String[] args) {
        List<String> names = Arrays.asList("Tom", "Bob", "Alice", "David","Jack");

        System.out.println("Uppercase Names:");
        for (String name : names) {
            String uppercaseName = name.toUpperCase();
            System.out.println(uppercaseName);
        }

        System.out.println("Lowercase Names:");
        for (String name : names) {
            String lowercaseName = name.toLowerCase();
            System.out.println(lowercaseName);
        }
    }

}
